package com.qf.controller;

import com.qf.dto.ProductTypeDTO;
import com.qf.service.IProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author LiuLiang
 * @Date 2020/3/9
 */
@Controller
public class ProductTypeController {

//    @Value("${server.port}")
//    private String serverPort;

    @Autowired
    private IProductTypeService productTypeService;

    @RequestMapping("selectAll")
    @ResponseBody
    public List<ProductTypeDTO> selectAll(){
        return productTypeService.selectAll();

    }
}
